import React from 'react'

import './style.scss'

class BuyAndStore extends React.Component{
    constructor(props, context){
        super(props, context)
    }
    render() {
        return (
            <div className="buyAndStore-box">
                <button onClick={this.clickHandle.bind(this)} className="btn left">{this.props.isStore? '已收藏' : '收藏'}</button>
                <button onClick={this.clickBuyHandle.bind(this)} className="btn">购买</button>
            </div>
        )
    }
    componentDidMount() {
    }
    clickHandle() {
        this.props.storeHandle()
    }
    clickBuyHandle() {
        this.props.buyHandle()
    }
}

export default BuyAndStore